package com.uinnova.springboot.demo.beetl;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.Arrays;

/**
 * @author 张攀钦
 * @date 2018-12-16-21:45
 */
@Controller
public class BeetlController {

    @GetMapping("/beetl/test")
    public ModelAndView test(){
        ModelAndView modelAndView =new ModelAndView();
        modelAndView.setViewName("/view/ceshi_js_css.html");
        modelAndView.addObject("list", Arrays.asList("张","攀","钦"));
        return modelAndView;
    }

    @GetMapping("/beetl/login")
    public ModelAndView login(){
        ModelAndView modelAndView =new ModelAndView();
        modelAndView.setViewName("/view/ceshi.html");
        modelAndView.addObject("list", Arrays.asList("1","2","3"));
        return modelAndView;
    }
}
